﻿@using EnterpriseFund.Common;
@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@GlobalConstant.CONSTRING_SYSTITLE</title>

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/checkinput.js", true)" type="text/javascript"></script>

    @if (false)
    {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
    }
  

<style type="text/css">
body { margin:0 auto; background: url(@Url.Content("~/Content/images/03.jpg", true)) 50%;}
.main { width:1000px; margin:0 auto;  padding-top:150px;} 
.login { width:466px; height:235px; margin:0 auto; background: url(@Url.Content("~/Content/images/01.gif", true)); }
b { color:#2a4a61;}
</style>
    <script type="text/javascript">
        $(document).ready(function () {
            var hdjsAlert = $("#hdjsAlert").val();
            if (hdjsAlert != "") {
                alert(hdjsAlert);
            }
        });
    </script>

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#txtUserName").focus();
            //            $("#imgValiCode").bind("click", function () {
            //                $(this).attr("src", "/Login/GetValidateCode?time=" + (new Date()).getTime());
            //            });
            $("#imgLogin").bind("click", function () {
                if (checkInput()) {
                    form1.submit();
                }
            });

            $("#imgLogin2").bind("click", function () {
                $("#txtUserName").val("");
                $("#txtPassword").val("");
            });
        });

        function checkInput() {
            if (!validateFocus("txtUserName", "用户名", "NotEmpty", false)) {
                return false;
            }
//            if (!validateFocus("Verify", "验证码", "NotEmpty", false)) {
//                return false;
//            }
            return true;
        }

        function keyPress() {
            if (event.keyCode && event.keyCode == 13) {
                if (checkInput()) {
                    form1.submit();
                }
            }
        }

        function getsrc(t) {
            t.src = "/EnterpriseFund/Verify?t=" + (new Date().getTime());
        }

    </script>

</head>
<body onkeypress="keyPress()" >
    @using (Html.BeginForm("Login", "Login", FormMethod.Post, new { id = "form1" }))
    {
@*        <div id="box">
    <table  width="100%" border="0" cellpadding="0" cellspacing="0" style="height: 100%">
    	<tr>
    	    <td><img src="@Url.Content("~/Content/images/login_03.gif")" width="100%" height="105" alt="" /></td>
    	</tr>
    	<tr>
    	    <td><img src="@Url.Content("~/Content/images/login_05.gif")" width="100%" height="58" alt="" /></td>
    	</tr>
    	<tr>
    	    <td style="width: 100%; height: 117px">
    	        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-image: url(@Url.Content("~/Content/images/login_06.gif"))">
                  <tr>
                    <td width="408"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="117px" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="23%" height="25" align="right">用户：</td>
                            <td width="77%" height="25"> @Html.TextBox("txtUserName", ViewData["UserName"], new { @style = "width:150px;" })</td>
                          </tr>
                          <tr>
                            <td height="25" align="right">密码：</td>
                            <td height="25"> @Html.Password("txtPassword", "", new { @style = "width:150px;" })</td>
                          </tr>
    @*                      <tr>
                            <td height="25" align="right">验证码：</td>
                            <td height="25" valign="bottom">@Html.TextBox("Verify", "", new { @style = "width:60px;" })
                            <img onclick="getsrc(this);" src="/EnterpriseFund/Verify" align="absmiddle" style="cursor: pointer" alt="不区分大小写,点击换一张" title="不区分大小写,点击换一张" />
                            </td>
                          </tr>*@
       @*                 </table></td>
                        <td>
                          <a href="#">
                        <img name="imgLogin" id="imgLogin" src="@Url.Content("~/Content/images/lgoin_dl_an.gif", true)" style="border:0"  /></a>
                        @*<asp:ImageButton ID="logon" runat="server" ImageUrl="images/lgoin_dl_an.gif" Width="79" Height="61" onclick="logon_Click" />*@
           @*             </td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
             </td>
         </tr>
    </table>
</div>*@
        
 <div class="main">
<div class="login">
<table width="100%" border="0">
  <tr>
    <td width="35%" height="235">&nbsp;</td>
    <td width="65%" valign="top">
    	<table width="100%" height="100%" border="0">
  <tr>
    <td height="61">&nbsp;</td>
  </tr>
  <tr>
    <td height="133" valign="top">
    <table width="100%" height="134" border="0">
  <tr>
    <td width="19%" height="28"><b>用户名</b></td>
    <td width="81%">
     @Html.TextBox("txtUserName", ViewData["UserName"], new { @style = "width:150px;" })</td>
  </tr>
  <tr>
    <td height="32"><b>密　码</b></td>
    <td>@Html.Password("txtPassword", "", new { @style = "width:150px;" })</td>
  </tr>
  <tr>
    <td height="21">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
    <input type="image" src="@Url.Content("~/Content/images/button01.jpg", true)" name="imgLogin" id="imgLogin" border="0">&nbsp;&nbsp;&nbsp;&nbsp;<input type="image" src="@Url.Content("~/Content/images/button02.jpg", true)" name="imgLogin2" id="imgLogin2" border="0"></td>
  </tr>
</table>

    </td>
  </tr>
  <tr>
    <td height="28">&nbsp;</td>
  </tr>
</table>

    </td>
  </tr>
</table>

</div>
<div style="text-align: center; font-size:12px; margin-top:50px; color:#FFF; line-height:24px;">
            推荐使用IE浏览器使用本系统<br>
            技术支持:易灵软件
        </div>
</div>
    }
</body>
@Html.Hidden("hdjsAlert", (ViewData["jsAlert"]));
</html>
